/*
 * 主程序模块声明.
 */

import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { InputTextModule, InputTextareaModule, CalendarModule, DropdownModule, SelectButtonModule,
    ButtonModule, PanelModule, DataTableModule, DataGridModule, DialogModule, ConfirmDialogModule,
    GrowlModule }  from 'primeng/primeng';

import { AppComponent } from './app.component';

import { BingoComponent } from './pages/bingo.component';
import { MemberComponent } from './pages/member.component';
import { WinnerComponent } from './pages/winner.component';
import { RouletteComponent } from './pages/roulette.component';

import { AppRoutingModule } from './app-routing.module';

import { RestService } from './services/RestService';


@NgModule({
    declarations: [
        AppComponent,
		BingoComponent,
		MemberComponent,
		WinnerComponent,
		RouletteComponent
    ],
    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        FormsModule,
        DataTableModule,
        DataGridModule,
        HttpClientModule,
        InputTextModule,
		InputTextareaModule,
        DropdownModule,
        SelectButtonModule,
		CalendarModule,
		PanelModule,
        DialogModule,
        ConfirmDialogModule,
        GrowlModule,
        ButtonModule,
		AppRoutingModule
    ],
    providers: [ RestService ],
    bootstrap: [ AppComponent ]
})
export class AppModule { }
